#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Oct  5 08:44:36 2018

@author: yanndecarie
"""

import pandas as pd
from os import path
import datetime

now = datetime.datetime.now()
print("Last Simtax_v2 import: " + str(now))


# parameters
first_year = 2011 #First year with parameters to import
nb_years = 6 # Number of years with parameters to import
end_year = first_year + nb_years
qc_abatment = 0.835 # Quebec's abatment
nrtc_age_rate = 0.15 # NRTC for age rate
postpone_oas_bonus = 0.072 # Anual bonus for postponing OAS pensions (simulation)
ont_socass_exempt_rate = 0.5 # For earning income only

class person: 
    def __init__(
            
        self,
        age=50,

        oas=0.0,
        gis=0.0,

        con_rrsp=0.0,
        inc_rrsp=0.0,
        
        # Household revenue sources
        inc_earning_1 = 0.0,
        inc_capital_gains_1 = 0.0,
        inc_interest_1 = 0.0,
        inc_dividends_1 = 0.0,
        inc_private_pension_1 = 0.0,
        inc_cpp_pension_1 = 0.0,
        inc_other_1 = 0.0,
        inc_selfempl_1 = 0.0,
        inc_othertaxable_1 = 0.0,
        inc_othernonetaxable_1=0.0
        ):
        
        self.age = age
        self.inc_earn = earn
        self.inc_oas = oas
        self.inc_gis = gis
        self.inc_rpp = rpp
        self.inc_cpp = cpp
        self.con_rrsp = con_rrsp
        self.inc_rrsp = inc_rrsp
        self.inc_othtax = othtax 
        self.inc_othntax = othntax
        self.inc_disp = 0.0
        return
    
        
    
    
    # Household revenue sources
        inc_earning_1 = 0.0,
        inc_capital_gains_1 = 0.0,
        inc_interest_1 = 0.0,
        inc_dividends_1 = 0.0,
        inc_private_pension_1 = 0.0,
        inc_cpp_pension_1 = 0.0,
        inc_other_1 = 0.0,
        inc_selfempl_1 = 0.0,
        inc_othertaxable_1 = 0.0,


# Initialize Household object
        self.year = year
        self.prov = prov
        self.age_1 = age_1
        self.age_2 = age_2
        self.nb_years_reportoas_1 = nb_years_reportoas_1
        self.nb_years_reportoas_2 = nb_years_reportoas_2
        self.kidages_1 = kidages_1
        self.kidages_2 = kidages_2
        self.kidages_3 = kidages_3
        self.kidages_4 = kidages_4
        self.kidages_5 = kidages_5
        self.kidages_6 = kidages_6
        self.kidages_7 = kidages_7
        self.kidages_8 = kidages_8
        self.t_immig_1 = t_immig_1
        self.t_immig_2 = t_immig_2
        self.ind_couple = ind_couple
        self.ind_widow = ind_widow
        self.immig_1 = immig_1
        self.immig_2 = immig_2
        self.invalid_1 = invalid_1
        self.invalid_2 = invalid_2
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    